package com.artislong.controller;

import cn.hutool.http.HttpUtil;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 陈敏
 * @version BookingController.java, v 1.0 2025 05 11 21:32 chenmin Exp $
 * Created on 2025 05 11
 */
@RestController
@CrossOrigin
public class BookingController {

    @CrossOrigin
    @GetMapping(value = "/booking/list")
    public Object getBookings() {
        return HttpUtil.get("http://localhost:8080/booking/list");
    }

}
